package com.macro.mall.dao;

import com.macro.mall.dto.KeywordsReturnResult;
import com.macro.mall.model.PmsKeyword;
import com.macro.mall.model.PmsKeywordExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface PmsKeywordDao {
    long countByExample(PmsKeywordExample example);

    int deleteByExample(PmsKeywordExample example);

    int deleteByPrimaryKey(Long id);

    int insert(PmsKeyword record);

    int insertSelective(PmsKeyword record);

    List<PmsKeyword> selectByExample(PmsKeywordExample example);

    PmsKeyword selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") PmsKeyword record, @Param("example") PmsKeywordExample example);

    int updateByExample(@Param("record") PmsKeyword record, @Param("example") PmsKeywordExample example);

    int updateByPrimaryKeySelective(PmsKeyword record);

    int updateByPrimaryKey(PmsKeyword record);

    List<KeywordsReturnResult> getList(@Param("keyword") String keyword);
}